home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ For TASM / ALIASDOS.PAK / CPPUSER.CPP < prev    next >
C/C++ Source or Header  |  1996-02-21  |  740b  |  35 lines

  1. /*
  2.    cppuser.cpp
  3.  
  4.    Copyright (c) 1993 by Borland International, Inc.
  5.  
  6.    This module links with library.lib using mangled CPP names.
  7.  
  8.    Part of the aliasdos example.
  9.  
  10.    Build using the provided makefile using: "make -B".
  11.  
  12. */
  13.  
  14. /* Prototypes for functions in library.lib. These prototypes will be 
  15.    mangled and resolved through aliasing. */
  16.  
  17. extern void SetCoords( int x, int y );
  18. extern void DrawHappyFace( char c );
  19. extern void PrintMessage( char * WhoIsIt );
  20.  
  21. #include <conio.h>
  22.  
  23. char Name[] = "CPP User Program";
  24.  
  25. int main()
  26. {
  27.    struct text_info ti;
  28.    gettextinfo( &ti );
  29.  
  30.    SetCoords( ti.screenwidth / 2, ti.screenheight / 2 );
  31.    DrawHappyFace( 0x3 );
  32.    PrintMessage( Name );
  33.    return 0;
  34. }
  35.